const Actions = {
    ADD: 0,
    EDIT: 1,
    REMOVE: 2
};

const ActionsMap = {
    [Actions.ADD]: '添加记录',
    [Actions.EDIT]: '编辑记录',
    [Actions.REMOVE]: '删除记录'
}

const TaskAction = [
    { name: '任务创建', value: 0 },
    { name: '任务修改', value: 1 },
    { name: '任务暂停', value: 2 },
    { name: '任务启动', value: 3 },
    { name: '任务结束', value: 4 },
    { name: '任务超时', value: 5 }
];

const SourceAction = [
    { name: '资源创建', value: 0 },
    { name: '资源修改', value: 1 },
    { name: '资源删除', value: 2 }
];

const GraphAction = [
    { name: '已创建', value: 0 },
    { name: '执行中', value: 1 },
    { name: '已暂停', value: 2 },
    { name: '已完成', value: 3 },
    { name: '有变更', value: 4 }
]

module.exports = { Actions, ActionsMap, TaskAction, SourceAction, GraphAction };